package com.example.attendance_back.service;

import com.example.attendance_back.mapper.SignMapper;
import com.example.attendance_back.model.ResponseMessage;
import com.example.attendance_back.model.SignIn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SignInService {

    @Autowired
    private SignMapper mapper;

    @Autowired
    private ResponseMessage responseMessage;


    public ResponseMessage getAll() {

        responseMessage.setSuccess(true);

        responseMessage.setData(mapper.selectAll());

        return responseMessage;

    }
}
